﻿using UnityEngine;

namespace ProjectDanmaku.UI
{
    public class SpriteProgressBar : MonoBehaviour
    {
        [SerializeField] private Transform progressBarTransform;

        public void SetProgress(float percent)
        {
            progressBarTransform.localPosition = new Vector3(-1 + 1 * percent, 0f, 0f);
        }
    }
}